export default class Bill {
    constructor({ id, type, date, resume, description, amount }) {
        this._id = id;
        this.type = type;
        this.date = date;
        this.resume = resume;
        this.description = description;
        this.amount = amount;
        this.isChecked = false;
    }

    get id() {
        if (this._id) {
            return this._id;
        } else {
            return null;
        }
    }

    // Getter for type
    get Type() {
        return this.type;
    }

    // Setter for type
    set Type(value) {
        this.type = value;
    }

    // Getter for date
    get Date() {
        return this.date;
    }

    // Setter for date
    set Date(value) {
        this.date = value;
    }

    // Getter for resume
    get Resume() {
        return this.resume;
    }

    // Setter for resume
    set Resume(value) {
        this.resume = value;
    }

    // Getter for description
    get Description() {
        return this.description;
    }

    // Setter for description
    set Description(value) {
        this.description = value;
    }

    // Getter for amount
    get Amount() {
        return this.amount;
    }

    // Setter for amount
    set Amount(value) {
        this.amount = value;
    }

}
